package com.example.bank.enums;

import lombok.Getter;

/**
 * @author ：Leeziqiang
 * @description：枚举
 * @date ：2021/11/12 14:40
 */
@Getter
public enum ResultEnum {

    SUCCESS(200, "操作成功"),
    ERROR(500, "操作失败"),
    UNAUTHORIZED_ERROR(401, "未登录授权"),
    LOGIN_SUCCESS(1, "登录成功"),
    LOGIN_ERROR(2, "登录失败"),
    BIND_SUCCESS(3, "绑定成功"),
    BIND_ERROR(4, "绑定失败"),
    SHOW_SUCCESS(5, "二维码展示成功"),
    SHOW_ERROR(6, "二维码展示失败"),
    LIST_SUCCESS(7, "用户列表获取成功"),
    LIST_ERROR(8, "用户列表获取失败"),
    SEND_SUCCESS(9, "信息发送成功"),
    SEND_ERROR(10, "信息发送失败"),
    ;
    Integer code;
    String msg;


    ResultEnum(Integer code, String msg) {
        this.code =code;
        this.msg = msg;
    }
}
